package com.ruoyi.common.core.domain.servicemanage;
import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券模板对象 coupon_template
 *
 * @author ruoyi
 * @date 2025-06-23
 */
@Data
public class CouponTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private String id;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String name;

    /** 折扣类型(1.满多少可用或无门槛  2 .折扣) */
    @Excel(name = "折扣类型(1.满多少可用或无门槛  2 .折扣)")
    private Long discountType;

    /** 折扣值 */
    @Excel(name = "折扣值")
    private BigDecimal value;

    /** 最大折扣金额 */
    @Excel(name = "最大折扣金额")
    private BigDecimal maxDiscount;

    /** 最低使用金额 */
    @Excel(name = "最低使用金额")
    private BigDecimal minOrderAmount;

    /** 适用服务类型 */
    @Excel(name = "适用服务类型")
    private Long serviceType;

    /** 优惠券描述 */
    @Excel(name = "优惠券描述")
    private String description;

    /** 是否激活 */
    @Excel(name = "是否激活")
    private Integer isActive;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("discountType", getDiscountType())
                .append("value", getValue())
                .append("maxDiscount", getMaxDiscount())
                .append("minOrderAmount", getMinOrderAmount())
                .append("serviceType", getServiceType())
                .append("description", getDescription())
                .append("isActive", getIsActive())
                .append("createTime", getCreateTime())
                .toString();
    }
}

